<div class="form" style="padding-left: 10px;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'changepass-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	
	<h1 style="text-align: center;">Đổi mật khẩu</h1>
        <p style='color: blue;'>
            <?php echo Yii::app()->user->getFlash('success'); ?>
        </p>
        <div class="row">
            <?php echo $form->labelEx($model, 'current_password'); ?>
            <?php echo $form->passwordField($model, 'current_password'); ?>
            <?php echo $form->error($model, 'current_password'); ?>
        </div>
        <div class="row">
            <?php echo $form->labelEx($model, 'new_password'); ?>
            <?php echo $form->passwordField($model, 'new_password'); ?>
            <?php echo $form->error($model, 'new_password'); ?>
        </div>
        <div class="row">
            <?php echo $form->labelEx($model, 'confirm_new_password'); ?>
            <?php echo $form->passwordField($model, 'confirm_new_password'); ?>
            <?php echo $form->error($model, 'confirm_new_password'); ?>
        </div>
      
	<div class="row buttons">
		<?php echo CHtml::submitButton('Cập nhật', array('class'=>'button active')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
